import request from '@/utils/request'

export function getCityManager(query) {

  return request({
    url: '/word/city/api/queryCityManagerList',
    method: 'get',
    params: query
  })
}

export function getPolicyList(query) {

  return request({
    url: '/word/policy/api/queryAreaPolicyList',
    method: 'get',
    params: query
  })
}

// 获取政策相关推荐
export function getPolicyReList() {
  const query = {
    pageSize: 5,
    pageNum: 1,
    isRecommend: 1
  }
  return request({
    url: '/word/policy/api/queryAreaPolicyList',
    method: 'get',
    params: query
  })
}

export function getPolicyDetail(query) {

  return request({
    url: '/word/policy/api/getAreaPolicyById',
    method: 'get',
    params: query
  })
}

export function getStarCompanyList(query) {
  return request({
    url: '/word/star/api/queryStarCompanyList',
    method: 'get',
    params: query
  })
}

export function getStarCompanyDetail(query) {
  return request({
    url: '/word/star/api/getStarCompanyById',
    method: 'get',
    params: query
  })
}

